﻿using System.Collections.Generic;
using Infancy.Core.Entities;
using Infancy.Core.Service;

namespace Infancy.Service
{
    public interface IUserService : ICachedService
    {
        User GetById(long userId);

        User GetByName(string name);

        IList<User> GetList();

        void Register(User user);

        void Login(User user, string urlReference, bool rememberMe);

        void Logout(User user);
    }
}